package ext

import java.util.*

fun randomString(bits: Int): String {
    val sb = StringBuilder()
    val r = Random()
    for (i in 0 until bits) {
        val c = 'a' + r.nextInt(24)
        sb.append(c)
    }
    return sb.toString()
}
